package com.itheima.mapper;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Select;

/**
 * @Name UserMapper
 * @Author BaiXin
 * @Date 2022-10-21 18:19
 */
public interface UserMapper {
    /**
     * 登录
     * @param user
     * @return
     */
    @Select("select * from t_user where name = #{name} and password = #{password}")
    User findByUsernameAndPassword(User user);
}
